﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AspectCore.DynamicProxy;
using AspectCore;
using AspectCore.DynamicProxy.Parameters;
using Microsoft.Extensions.DependencyInjection;
using AspectCore.Services;

namespace AspectCore.Aop
{
    public class LogInterceptor : AbstractInterceptor
    {
        public async override Task Invoke(AspectContext context, AspectDelegate next)
        {
            var test = context.ServiceProvider.GetServices<ITestService>();
            await next(context);
        }
    }
}
